package com.wanmait.zaisousuo.mapper;

import com.wanmait.zaisousuo.pojo.Answer;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

public interface AnswerMapper {
    void answerAccept(Answer answer);

    List<Answer> findByQuestion(Integer questionId);

    int deleteByPrimaryKey(Integer id);

    int insert(Answer record);

    int insertSelective(Answer record);

    Answer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Answer record);

    int updateByPrimaryKey(Answer record);

    void updateDisabled(@Param("id") Integer id,@Param("disabled") boolean disabled);

    List<Answer> findByUserId(Integer id);

    void deleteAll(List<Integer> idList);

    void recoverAll(List<Integer> idList);
}